package com.situ.stl.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.situ.stl.model.Member;

import java.math.BigDecimal;
import java.util.List;

public interface MemberService {
    /**
     * 查询全部会员
     *
     * @param page 分页对象
     * @param member  查询条件
     * @return 结果
     */
    Page<Member> findAll(Page<Member> page, Member member);

    //批量查询
    List<Member> getByIds(List<Long> ids);

    //删除
    int deleteByIds(List<Integer> ids);

    //保存会员
    boolean save(Member member);

    //更新会员
    boolean update(Member member);

    //充值
    boolean recharge(Integer id, BigDecimal amount);

    //消费
    boolean consume(Integer id, BigDecimal amount);
}
